package com.hwzn.module.admin.mapper;

import org.apache.ibatis.annotations.Mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hwzn.module.core.dos.UserDO;

/**
 * 类注释
 *
 * @author jiaobo
 * @date Created in 2024/5/15 11:03
 * @company hw
 **/
@Mapper
public interface UserMapper extends BaseMapper<UserDO> {

    default UserDO selectByName(String username) {
        return selectOne(new LambdaQueryWrapper<UserDO>()
                                 .eq(UserDO::getUsername,username));
    }

}
